<%@ page language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>

<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<portlet:actionURL var="formUrl">
 <portlet:param name="action" value="person" />
</portlet:actionURL>

<form:form commandName="person" name="form" method="post" action="${formUrl}">

Please, type in your name:
<br/>
 First Name
<form:input path="firstName" />
 <span class="error"><form:errors path="firstName" /></span>
 <br />
 Last Name
<form:input path="lastName" />
 <span class="error"><form:errors path="lastName" /></span>
<br/>
<input type="submit" value="submit"/>
</form:form>
